var $reset={
	//公用IP地址
	url:'192.168',
	//设置存储过期时间
	ExpirationTime:function(t){
		var bool;
		if(localStorage.length){
			if(Math.round(new Date()/1000)-JSON.parse(localStorage.data).time<(86400*t)){
				bool=true;			
			}else{
				bool=false;
				return false;
				localStorage.clear();
			}
		}
		return bool;
	},
	//初始化得到localStorage
	getStorage:function(){
		var bool;
		if(localStorage.length){
			bool=JSON.parse(localStorage.data);
		}else{
			bool=false;
			return false;
		}
		return bool;
	},
	//验证注册参数是否为空
	registered:function(){
		var bool;
		if(arguments.length){
			$.each(arguments, function(k,v) {
				if($(v).val()){
					bool=true;
				}else{
					var txt=$(v).attr('placeholder');
					window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
					bool=false;
					return false;
				}
			});
		}else{
			var txt='请传入验证所需参数';
			window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
			bool=false;
			return false;
		}
		return bool;
	},
	//验证手机号码正则表达式
	VerifyPhoneNumber:function(){
		var phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/,val=$(arguments).val(),bool;
		if(arguments.length>0){
			if(phoneReg.test(val)){
				bool=true;
			}else{
				var txt=$(arguments).attr('placeholder');
				var option = {
					onOk: function(){
						$(arguments).val('')
					}
				}
				window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.success,option);
				bool=false;
				return false;
			}
		}else{
			var txt='请传入验证所需参数';
			window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
			bool=false;
			return false;
		}
		return bool;
	}
}
